package com.wing.cabinet.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.wing.cabinet.model.entity.StorageInventoryKnife;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 刀具产品货道库存Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class StorageInventoryKnifeForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * 柜子编号
     */
    private String cabCode;

    /**
     * 货道id
     */
    private Long spaceId;

    /**
     * 货道编号
     */
    private String spaceCode;

    /**
     * sku id
     */
    private Long skuId;

    /**
     * sku 编号
     */
    private String skuCode;

    /**
     * 库存数量
     */
    private Integer quantity;

    /**
     * 业务类型
     */
    private StorageInventoryKnife.BusinessType businessType;

    /**
     * 是否已同步：no(0,未同步);yes(1,已同步);
     */
    private Integer isSyns;

    /**
    * 同步时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime synsTime;

    /**
     * deviceCode
     */
    private String deviceCode;

    /**
     * companyId
     */
    private Long companyId;

    /**
     * 存取刀id
     */
    private Long storageInventoryInoutId;

    /**
     * labelCode
     */
    private String labelCode;


    public interface Add{}

    public interface Update{}

    private Long storageInventoryUserId;

    private Long workOrderId;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime inTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime outTime;

    private Integer remainingTime;


    /**
     * 寿命单位  1：小时/ 2：次数
     */
    private StorageInventoryKnife.LifeUnit lifeUnit;

    private StorageInventoryKnife.BusinessDetailType businessDetailType;


    private Integer settingTime;

    private String knifeRemark;

    private StorageInventoryKnife.LoadingType loadingType;

    private Long categoryId;

    private Long processId;


    private BigDecimal price;

}
